<!--
 * @Author: 刘霁雯
 * @Description: 已收货
 -->
<template>
    <div>
        <cli-title-customer></cli-title-customer>
        <div class="orderList">
            <order-list :list="5" :order-list="orderList"></order-list>
        </div>
    </div>
</template>

<script>
    import CliTitleCustomer from "../../../components/base/cliTitleCustomer";
    import OrderList from "../../../components/base/orderList";
    import POST from "../../../api/POST";
    import Cookie from "js-cookie";
    export default {
        components: {OrderList, CliTitleCustomer},
        data () {
            return {
                list:'5',
                orderList:[]
            }
        },
        created () {
            this.getList()
        },
        methods: {
            getList(){
                let data = {
                    token:Cookie.get('token')
                }
                POST.historyOrder(data).then(res=>{
                    this.orderList = res
                })
            }
        }
    }
</script>
<style scope>
    .orderList {
        position: absolute;
        right: 0;
        left: 0;
        top: 65px;
        margin: auto;
    }


</style>
